<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link rel="stylesheet" href="./css/bootstrap.css"> 
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/pading.css">

	<script src="./js/jquery-3.4.1.min.js"></script>  
    <script src="./js/bootstrap.js"></script>
    <title>猎狐人才资源服务有限公司</title>
</head>
<body>
	<div class="wrap">
		<script type="text/javascript" src="./js/head.js"></script>

	<div id="ss" class="container-fluid row">
        <nav class="menu-wrap col-md-3">
            <div class="menu">
                <ul>
                    <li>
                        <div class="menu-tab">社保与公积金代理</div>
                    </li><br><br>
                    <li>
                        <a href="./socialAgency.html">
                            <span class="nav-text">社保代理</span>
                        </a>
                    </li>
                    <li>
                        <a href="./socialAgency.html#accumulationFund">
                            <span class="nav-text">公积金代理</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="nav-text">生育保险代理</span>
                        </a>
                    </li>
                    <li>
                        <a href="./socialApply.html">
                            <span class="nav-text">申请代缴</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="nav-text">缴费历史记录</span>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>
        <div id="ss_right" class="col-md-9">
           <div class="right fr">
            
            <input type="button" value="登录" />

            </div>
        </div>
    </div>

    <div class="empty"></div>
	</div>

<style type="text/css" media="screen">
    * {
    margin: 0px;
    padding: 0px;
   }
   
   #mask {
    width: 100%;
    background-color: black;
    opacity: 0.3;
    position: fixed;
    left: 0px;
    top: 0px;
   }
   
   #pop-login {
    width: 300px;
    height: 100px;
    position: fixed;
    background-color: white;
   }

   #close-pop {
    position: absolute;
    top: 3px;
    right: 3px;
   }
</style>
	<script type="text/javascript" src="./js/foot.js"></script>
    <script type="text/javascript">
        document.getElementById('login-btn').onclick = function() {
    var b_width = document.body.clientWidth;            //获取整个页面的宽度
    var b_height = document.documentElement.clientHeight;     //获取整个页面的高度
    var left = b_width / 2 - 150 + 'px';
    var top = b_height / 2 - 50+ 'px';                    //使登录框居中

    var mask = document.createElement('div');

    mask.style.height = b_height + 'px';              //使遮罩层高度能够覆盖整个页面

    mask.id = 'mask';

    document.body.appendChild(mask);

    var pop_login = document.createElement('div');
    pop_login.style.left = left;
    pop_login.style.top = top;
    pop_login.id = 'pop-login';                           //使登录框能够居中显示
    pop_login.innerHTML =
                  '<form action="#" method="post">' +
                  '<input type="text" name="name" placeholder="用户名/邮箱/手机号" id="zh" /><br>' +
                  '<input type="password" name="password" placeholder="密码" id="dm" />' +
                  '<input type="submit" value="提交" />' +
                  '</form>' ;                   //添加登录框
    document.body.appendChild(pop_login);
    document.getElementById('close-pop').onclick = function(){
                  document.body.removeChild(mask);
                  document.body.removeChild(pop_login);                         //给x添加点击事件，移除登录框和遮罩层
    }

    mask.onclick = function() {
    document.body.removeChild(mask);
    document.body.removeChild(pop_login);                                //给遮罩层添加点击事件，移除登录框和遮罩层
     }
 }
    </script>
</body>
</html>